package com.david.util;

import com.david.shiro.AccountProfile;
import org.apache.shiro.SecurityUtils;
/**
 * @program: Blog-Vue
 * @description:
 * @author: David
 * @version:
 * @create: 2022-05-09 20:27
 **/
public class ShiroUtil {
    public static AccountProfile getProfile() {
        return (AccountProfile) SecurityUtils.getSubject().getPrincipal();
    }
}
